package com.li.spring_demo08_aop;

import com.li.service.userService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@SpringBootApplication
public class SpringDemo08AopApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringDemo08AopApplication.class, args);
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        userService userservice= (userService) context.getBean("userService");
        userservice.edit();

    }

}
